#pragma once
/*!
 * \file 
 * UtilLog.h
 */

/*!
 * \brief Writing log file
 *
 * class for writing log file 
 * 
 * - header file: UtilLog.h
 * - lib: util.lib
 * - DLL: util.dll
 * 
 */
class AFX_EXT_CLASS CUtilLog
{
public:
	CUtilLog(void);		/**< constructor 	*/
	~CUtilLog(void);	/**< destructor 	*/

	/*!
	 * static function.
	 * Log file name is created from the date of calling WriteLog function
	 * or log file is opened if log file has already existed.
	 * The format of file name is vlYYYYMMDD.log
	 *
	 * @param tzFileDir a folder which is log file is saving
	 * @param tzMessage a format-control string
	 * @param ... optional arguments
	 */
	static void WriteLog(TCHAR *tzFileDir, TCHAR *tzMessage, ...);

	//////////////////////////////////////////////////////////////////////////
	/*!
	 * Create a text or log file which contains system specification such as OS version, CPU, Display adapter, etc.
	 *
	 * @param tzFilePath a file path in which system log is being saved 
	 */
	void WriteLogSystem(TCHAR *tzFilePath);

};
